﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.Windows.Forms;

namespace OpenESSOConfigurator.BusinessLayer.Atoms
{
    [Serializable]
    public class WinField
    {
        private String _type;
        private String _text;
        private String _controlName;
        private String _controlClass;
        private String _controlID;
        private DataGridViewImageColumn _detect;
        

        public WinField()
        { }

        [XmlAttribute("type")]
        public String Type
        {
            get { return _type; }
            set { _type = value; }
        }
        [XmlAttribute("text")]
        public String Text
        {
            get { return _text; }
            set { _text = value; }
        }
        [XmlAttribute("controlName")]
        public String ControlName
        {
            get { return _controlName; }
            set { _controlName = value; }
        }
        [XmlAttribute("controlClass")]
        public String ControlClass
        {
            get { return _controlClass; }
            set { _controlClass = value; }
        }
        [XmlAttribute("controlID")]
        public String ControlID
        {
            get { return _controlID; }
            set { _controlID = value; }
        }
        [XmlIgnore()]
        public DataGridViewImageColumn Detect
        {
            get { return _detect; }
            set { _detect = value; }
        }
    }
}
